import instance from "@/utils/request/http.js";

export const userLogin = (Form) => instance.post("api/user/login", Form);

export const getUserList = (Form) => instance.get("api/user/list", { params: Form });

export const addUser = (Form) => instance.post("api/user/reg", Form);

export const editUser = (Form) => instance.put("api/user/edit", Form);

export const delUser = (data) => instance.delete("api/user/del", { data });

export const getUserdetail = (id) => instance.get("api/user/detail", { params: { id } });
